import request from "../utils/request";

// 班级分页
export const classList = data => {
    return request({
        method: 'POST',
        url: '/class/getClassPage',
        data
    })
}
// 班级不分页
export const classNoPage = id => {
    return request({
        method: 'GET',
        url: '/class/getClassList?id=' + id
    })
}
//新增班级
export const addClass = data => {
    return request({
        method: 'POST',
        url: '/class/add',
        data
    })
}
//删除班级
export const delClass = id => {
    return request({
        method: 'GET',
        url: '/class/deleteById?id=' + id
    })
}
//编辑班级
export const editClass = data => {
    return request({
        method: 'POST',
        url: '/class/edit',
        data
    })
}
//查看班级下学生-分页
export const clsStu = data => {
    return request({
        method: 'POST',
        url: '/class/getClassStudentPage',
        data
    })
}
//班级下添加学生
export const addStu = data => {
    return request({
        method: 'POST',
        url: '/user/addStudent',
        data
    })
}
